const SERVICE =  require("../../lib/js/service.js");

Page({
  data:{
    imgUrl: SERVICE.imgUrl,
    silder: [
      'lunbotu/lunbotu2.jpg',
      'lunbotu/lunbotu1.jpg',
      'lunbotu/lunbotu3.jpg'
    ]
  },
  onLoad(){
    
  },

  /*分享*/
  onShareAppMessage() { 
    
  },

  /*招聘*/ 
  joinUs(){
    let certification = wx.getStorageSync("userInfo").certification;
    if (certification != 0 && certification != 4){
      wx.navigateTo({
        url: "../join-us/join-us",
      })
    } else if (certification == 4){
      wx.showToast({
        title: "认证正在审核中，请稍等",
        icon: "none",
        mask: true,
        duration: 2000
      });
    } else if (certification == 0) {
      wx.showToast({
        title: "请先到个人中心认证",
        icon: "none",
        mask: true,
        duration: 2000
      });
    }
  },
  MoreService(){
    wx.showToast({
      title: "更多免费、实用功能即将上线",
      icon: "none",
      mask: true,
      duration: 2000
    });
  }
});